import * as config from 'src/config'
import {
  axios,
  PostParams
} from 'src/common/ajax'

function install(Vue) {
  Object.defineProperties(Vue.prototype, {
    $appConfig: {
      get() {
        return config
      }
    },
    $ajax: {
      get() {
        return axios
      }
    },
    $postParams: {
      get() {
        return PostParams
      }
    }
  })
}

export default install